/**
 * 
 */
package com.autosalon.ui.banka.state;

import com.autosalon.ui.banka.Banka;

/**
 * @author Ragisel
 *
 */
public class BankaStateHolder {

	
	public static IBankaState[] NEW_BANKA_STATE = {null,new NewBankaState()};
	public static IBankaState[] VIEW_BANKA_STATE = {new ViewBankaStateGuest(), new ViewBankaState()};
	public static IBankaState[] EDIT_BANKA_STATE = {null , new EditBankaState()};
	
	public static void setState(IBankaState[] bankaState,int id_role, Banka banka){
		bankaState[id_role-2].initComponents(banka);
		bankaState[id_role-2].initForms(banka);
	}

}
